|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.jobs.LockListener
A lock listener is notified whenever a thread is about to wait on a lock, and when a thread is about to release a lock.
This class is for internal use by the platform-related plug-ins. Clients outside of the base platform should not reference or subclass this class.
IJobManager.setLockListener
Constructor Summary | |
LockListener()
|
Method Summary | |
void |
aboutToRelease()
Notification that a thread is about to release a lock. |
boolean |
aboutToWait(Thread lockOwner)
Notification that a thread is about to block on an attempt to acquire a lock. |
protected boolean |
isLockOwnerThread()
Returns whether this thread currently owns any locks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LockListener()
Method Detail |
public boolean aboutToWait(Thread lockOwner)
lockOwner
- the thread that currently owns the lock this thread is
waiting for, or null
if unknown.
true
if the thread should be granted immediate access,
and false
if it should wait for the lock to be availablepublic void aboutToRelease()
protected final boolean isLockOwnerThread()
true
if this thread owns any locks, and
false
otherwise.
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |